package com.rongzhong.routing.checkNode;

import java.util.Date;

public class BaseNode {
	private int id;
	private Date date;
	private String host;
	private int port;
	
	private boolean healthy;
	private String serverVersion;
	private String basedir;
	private String datadir;
	private String pidFile;
	private String socket;
	
	/*这个地方目前没有做任何检查，因为需要检测服务器端备份文件是否完好，
	这里面如果要细扣的话，有一些东西的，呵呵。下次再补充。*/
	private boolean dataBackup; 
	
	private String taskNumber = "DBMySQL01";
	private String sheetTag;
	
	public String getSheetTag() {
		return sheetTag;
	}
	public void setSheetTag(String sheetTag) {
		this.sheetTag = sheetTag;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public String getTaskNumber() {
		return taskNumber;
	}
	public boolean isHealthy() {
		return healthy;
	}
	public void setHealthy(boolean healthy) {
		this.healthy = healthy;
	}
	public String getServerVersion() {
		return serverVersion;
	}
	public void setServerVersion(String serverVersion) {
		this.serverVersion = serverVersion;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getBasedir() {
		return basedir;
	}
	public void setBasedir(String basedir) {
		this.basedir = basedir;
	}
	public String getDatadir() {
		return datadir;
	}
	public void setDatadir(String datadir) {
		this.datadir = datadir;
	}
	public String getPidFile() {
		return pidFile;
	}
	public void setPidFile(String pidFile) {
		this.pidFile = pidFile;
	}
	public String getSocket() {
		return socket;
	}
	public void setSocket(String socket) {
		this.socket = socket;
	}
	public boolean isDataBackup() {
		return dataBackup;
	}
	public void setDataBackup(boolean dataBackup) {
		this.dataBackup = dataBackup;
	}
}
